<%-- 
    Document   : register
    Created on : Nov 2, 2012, 11:19:10 AM
    Author     : tiz
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Register new account</title>
        <link href="css/screenelement.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div id='cssmenu'>
            <ul>
                <li><a href='index.jsp'><span>Home</span></a></li>
                <li><a href='searchFilm.jsp'><span>Search film</span></a></li>
                <c:if test="${empty currentUser}">
                    <li class='active'><a href='register.jsp'><span>Register</span></a></li>
                </c:if>
                <li><a href='aboutProject.jsp'><span>About project</span></a></li>
            </ul>
        </div>
        <div id="tablestyle">
            <li style="width: 240px; display: block; position: absolute;">
                <c:if test="${not empty currentUser}">
                    <div style="width: 240px; border-style: double;">
                        <p align="center" style="color:blue;">
                            Welcome  ${sessionScope.currentUser}!
                        </p>
                        <c:set var="role" value="admin"/>
                        <c:if test="${role == sessionScope.currentUser}">
                            <a href='addFilm.jsp'>
                                <h6 align="center">Add new film</h6>
                            </a>
                        </c:if>
                    </div>
                </c:if>
                <p style=" margin-left: 5%; margin-top: 5px;" align="center">Trailer for this month</p>
                <iframe id="clipshow"  width="240" height="240" src="http://www.youtube.com/embed/JbVqj-xBuYE" frameborder="0" allowfullscreen></iframe>
            </li>
            <li style="width: 650px; display: block; position: absolute; margin-left: 250px;">
                <form action="Controller" method="post">
                    <table>
                        <tr>
                            <td width="130px">
                                <p align="center" >User ID:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtuserid" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="130px">
                                <p align="center" >Password:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtpassword" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="130px">
                                <p align="center" >Retype password:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtRetypepassword" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="130px">
                                <p align="center" >Birthday:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtbirthday" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="130px">
                                <p align="center" >Address:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtaddress" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="130px">
                                <p align="center" >Phone:</p>
                            </td>
                            <td>
                                <input align="center" type="text" name="txtphone" value="" size="415px"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                <input align="center" type="submit" value="Register" name="action"/>
                            </td>
                            <td width="100px">
                                <input align="center" type="reset" value="Reset" name="action"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </li>
        </div>
    </body>
</html>
